package com.fanco.learn_datastruct_leetcode.designpattern.observe.improve;

/**
 * @author qiaowang 2022/2/22
 * 描述
 */
public class Client {

    public static void main(String[] args) {

        WeatherData weatherData = new WeatherData();

        CurrentConditions currentConditions = new CurrentConditions();

        weatherData.registerObserver(currentConditions);

        System.out.println("通知。。。观察者");

        weatherData.setData(10, 232,12);

    }

}
